home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / tools / czesc_3 / multiuser / src / library / groupinfo.c < prev    next >
C/C++ Source or Header  |  1994-03-07  |  1KB  |  57 lines

  1. /************************************************************
  2. * MultiUser - MultiUser Task/File Support System                *
  3. * ---------------------------------------------------------    *
  4. * Group Information Management                                        *
  5. * ---------------------------------------------------------    *
  6. * © Copyright 1993-1994 Geert Uytterhoeven                        *
  7. * All Rights Reserved.                                                    *
  8. ************************************************************/
  9.  
  10.  
  11. #include <proto/exec.h>
  12.  
  13. #include "Memory.h"
  14. #include "GroupInfo.h"
  15. #include "Server.h"
  16.  
  17.  
  18.     /*
  19.      *        Allocate a GroupInfo Structure
  20.      *
  21.      *        Public Library Function
  22.      */
  23.  
  24. struct muPrivGroupInfo __asm __saveds *muAllocGroupInfo(void)
  25. {
  26.     return(MAlloc(sizeof(struct muPrivGroupInfo)));
  27. }
  28.  
  29.  
  30.     /*
  31.      *        Free a GroupInfo Structure
  32.      *
  33.      *        Public Library Function
  34.      */
  35.  
  36. void __asm __saveds muFreeGroupInfo(register __a0 struct muPrivGroupInfo *info)
  37. {
  38.    if (info) {
  39.       FreeV(info->Pattern);
  40.          Free(info, sizeof(struct muPrivGroupInfo));
  41.     }
  42. }
  43.  
  44.  
  45.     /*
  46.      *        Get Information about a Group
  47.      *
  48.      *        Public Library Function
  49.      */
  50.  
  51. struct muPrivGroupInfo __asm __saveds *muGetGroupInfo(register __a0 struct muPrivGroupInfo *info,
  52.                                                                         register __d0 ULONG keytype)
  53. {
  54.     return((struct muPrivGroupInfo *)SendServerPacket(muSAction_GetGroupInfo, (LONG)info, keytype, NULL,
  55.                                                                      NULL));
  56. }
  57.